import request from '@/request/xuhui-android' //客户端本机
//打开社保卡读卡器
export const SsCardOpenDevice = (params) => {
	return request({
		url: '/SsCard/openDevice',
		data: params,
	});
}
//关闭社保卡读卡器
export const SsCardCloseDevice = (params) => {
	return request({
		url: '/SsCard/closeDevice',
		data: params,
	});
}
//读社保卡
export const SsCardIReadCardBas = (params) => {
	return request({
		url: '/SsCard/iReadCardBas',
		data: params,
	});
}
//基于加密机的读社保卡基本信息（步骤一）
export const iReadCard_HSM_Step1 = (params) => {
	return request({
		url: '/SsCard/iReadCard_HSM_Step1',
		params: {
			httpMethod: 'post',
		},
		data: params,
	});
}
//基于加密机的读社保卡基本信息（步骤二）
export const iReadCard_HSM_Step2 = (params) => {
	return request({
		url: '/SsCard/iReadCard_HSM_Step2',
		params: {
			httpMethod: 'post',
		},
		data: params,
	});
}
//社保卡密码校验
export const iVerifyPIN1 = (params) => {
	return request({
		url: '/SsCard/iVerifyPIN1',
		params: {
			httpMethod: 'post',
		},
		data: params,
	});
}

//打开磁条卡读卡器
export const StripeCardOpenDevice = (params) => {
	return request({
		url: '/StripeCard/openDevice',
		data: params,
	});
}
//关闭磁条卡读卡器
export const StripeCardCloseDevice = (params) => {
	return request({
		url: '/StripeCard/closeDevice',
		data: params,
	});
}
//读磁条卡信息
export const StripeCardReadMagCardALL = (params) => {

	return request({
		url: '/StripeCard/readMagCardALL',
		data: params,
	});
}
//连接凭条打印机
export const connectSlipPrinter = (params) => {
	return request({
		url: '/SlipPrinter/connectSlipPrinter',
		data: params,
	});
}
//获取凭条打印机状态
export const getSlipPrinterStatus = (params) => {
	return request({
		url: '/SlipPrinter/getSlipPrinterStatus',
		data: params,
	});
}
//凭条打印
export const onPrintTicket = (params) => {
	return request({
		url: '/SlipPrinter/onPrintTicket',
		data: params,
		params:{
			httpMethod:'post',
		},
	});
}
//语音测试接口 
export const textToSpeech = (params) => {
	return request({
		url: '/DeviceManage/textToSpeech',
		params: {
			httpMethod: 'post',
		},
		data: params,
	});
}